package com.one2many;

import java.util.HashSet;
import java.util.Set;

import com.one2one.*;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String name;
	private Boolean sex;
	private String email;
	private Idcard idcard;
	private Idcard2 idcard2;
	private Set bookses = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(Integer userId) {
		this.userId = userId;
	}
	

	/** full constructor */
	public User(Integer userId, String name, Boolean sex, String email,
			Idcard idcard, Idcard2 idcard2, Set bookses) {
		this.userId = userId;
		this.name = name;
		this.sex = sex;
		this.email = email;
		this.idcard = idcard;
		this.idcard2 = idcard2;
		this.bookses = bookses;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getSex() {
		return this.sex;
	}

	public void setSex(Boolean sex) {
		this.sex = sex;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Set getBookses() {
		return this.bookses;
	}

	public void setBookses(Set bookses) {
		this.bookses = bookses;
	}
	
	public Idcard getIdcard() {
		return idcard;
	}

	public void setIdcard(Idcard idcard) {
		this.idcard = idcard;
	}
	
	public Idcard2 getIdcard2() {
		return idcard2;
	}

	public void setIdcard2(Idcard2 idcard2) {
		this.idcard2 = idcard2;
	}
}